package recorder.input;

import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

import core.input.InputManager;
import core.input.InputReceiver;

public class InputManagerRecorder extends InputManager implements InputReceiver{
	
	public void keyPressed(KeyEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.keyPressed(e);
		}
	}

	public void keyReleased(KeyEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.keyReleased(e);
		}
	}

	public void keyTyped(KeyEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.keyTyped(e);
		}
	}

	public void mouseClicked(MouseEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.mouseClicked(e);
		}
	}

	public void mouseMoved(MouseEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.mouseMoved(e);
		}
	}

	public void mousePressed(MouseEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.mousePressed(e);
		}
	}

	public void mouseReleased(MouseEvent e) {
		InputReceiver output;
		for(int i=0; i<listInput.size(); i++){
			output = listInput.get(i);
			output.mouseReleased(e);
		}
	}

}
